﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Sharpie.Libs
{
	public class Text
	{
		public static void DrawShadowedText(SpriteBatch spriteBatch, SpriteFont textFont, string textString, Vector2 textPosition, Color textColor)
		{
			Vector2 textShadow = new Vector2(textPosition.X + 1f, textPosition.Y + 1f);
			spriteBatch.DrawString(textFont, textString, textShadow, Color.Black);
			spriteBatch.DrawString(textFont, textString, textPosition, textColor);
		}

		public static void DrawShadowedText(SpriteBatch spriteBatch, SpriteFont textFont, string textString, Vector2 textPosition, Color textColor, Vector2 origin, float scale)
		{
			Vector2 textShadow = new Vector2(textPosition.X + 1f, textPosition.Y + 1f);
			spriteBatch.DrawString(textFont, textString, textShadow, Color.Black, 0F, origin, scale, SpriteEffects.None, 0);
			spriteBatch.DrawString(textFont, textString, textPosition, textColor, 0F, origin, scale, SpriteEffects.None, 0);
		}
	}
}